package io.renren.modules.common.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.common.dao.DemandSensitiveWordDao;
import io.renren.modules.common.entity.DemandSensitiveWordEntity;
import io.renren.modules.common.service.DemandSensitiveWordService;

@Service("demandSensitiveWordService")
public class DemandSensitiveWordServiceImpl extends ServiceImpl<DemandSensitiveWordDao, DemandSensitiveWordEntity>
		implements DemandSensitiveWordService {

	@Override
	public PageUtils queryPage(Map<String, Object> params) {
		Page<DemandSensitiveWordEntity> page = this.selectPage(new Query<DemandSensitiveWordEntity>(params).getPage(),
				new EntityWrapper<DemandSensitiveWordEntity>());

		return new PageUtils(page);
	}

	@Override
	public List<String> sensitiveWord() {
		// TODO Auto-generated method stub
		return this.baseMapper.sensitiveWord();
	}

}
